#include <stdarg.h>
#include <stdio.h>
#include <time.h>
#include "wrizhi.h"
FILE *fp_rizhi=NULL;
void getrizhi()
{
    fp_rizhi=fopen("./rizhi.txt", "a+");
    time_t tm=time(NULL);
    char *s=ctime(&tm);
    fprintf(fp_rizhi,"%s", s);
}
void wrizhi(const char *format,...)
{
    va_list ap;
    va_start(ap,format);
    vfprintf(fp_rizhi,format,ap);
    va_end(ap);
    fflush(fp_rizhi);
}
void rmrizhi()
{
    fclose(fp_rizhi);
    fp_rizhi=NULL;
}
